<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增停车场信息')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-partLot-add">
        <h4 class="form-header h4">停车场信息信息</h4>
        <div class="form-group">
            <label class="col-sm-3 control-label">停车场编号：</label>
            <div class="col-sm-8">
                <input name="partLotNum" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">停车场名称：</label>
            <div class="col-sm-8">
                <input name="partLotName" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">停车场类型：</label>
            <div class="col-sm-8">
                <select name="partTypeId" class="form-control m-b">
                <option th:each="partType:${partTypes}" th:text="${partType.partTypeName}"
                        th:value="${partType.partTypeId}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <input name="remark" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "part/partLot"
    $("#form-partLot-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-partLot-add').serialize());
        }
    }
</script>
</body>
</html>